/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bsu.cs342.lab1.cache;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Sam Jenkins
 */
public class CacheFileProcessor {

    public CacheFileProcessor() {
    }

    public void processFile(int maxCacheSize, File file) {
        try {
            Cache cache = new Cache();
            FileReader fileReader = new FileReader(file);
            BufferedReader bufferedReader = new BufferedReader(fileReader);
            String line = null;
            
            while (bufferedReader.ready()) {
                line = bufferedReader.readLine();
                System.out.println(line);
            }
            
        } catch (IOException ex) {
            Logger.getLogger(CacheFileProcessor.class.getName()).log(Level.SEVERE, null, ex);
        } catch (NullPointerException ex) {
            Logger.getLogger(CacheFileProcessor.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
